<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
	<BASE href="<?= HOME; ?>" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="robots" content="noindex, nofollow">
     <meta name="keywords" content="<?php if($data[keyword]=="") { echo KEYWORD;}else{echo $data[keyword];} ?>" />	
	<meta name="description" content="<?php if($data[mota]=="") { echo DES;}else{echo $data[mota];} ?>" /> 
	<title><?php if($data[title]=="") { echo HEAD;}else{echo $data[title];} ?></title>
   	<link rel="icon"  type="image/png" href="/favicon.png" />
    <link href="public/exts/admin/2.1.1/assets/css/bootstrap.min.css" rel="stylesheet">
	<link href="public/exts/admin/2.1.1/assets/css/style.css" rel="stylesheet">
	<link href="public/exts/admin/2.1.1/assets/css/retina.min.css" rel="stylesheet">
  	<link rel="stylesheet" href="<?= HOME ?>public/exts/css/general.css" type="text/css" />
    <link rel="stylesheet" href="<?= HOME ?>public/exts/css/theme.css" type="text/css" />
	<link rel="stylesheet" href="<?= HOME ?>public/exts/css/select22.css" type="text/css" />	
    	  <link href="<?= HOME ?>public/exts/css/bootflat-extensions.css" rel="stylesheet" />
    
	<!-- CSS to style the file input field as button and adjust the Bootstrap progress bars -->
	<link rel="stylesheet" href="<?= HOME ?>public/exts/js/jqueryupload/css/jquery.fileupload-ui.css">
	<!-- CSS adjustments for browsers with JavaScript disabled -->
	<noscript><link rel="stylesheet" href="<?= HOME ?>/public/exts/js/jqueryupload/css/jquery.fileupload-ui-noscript.css"></noscript>
	<script type="text/javascript" language="javascript" src="<?= HOME ?>public/exts/js/jquery-1.7.1.min.js"></script>
     <script type="text/javascript">var baseUrl = '<?= HOME; ?>'</script>
    <link href='http://fonts.googleapis.com/css?family=Roboto+Condensed&subset=vietnamese' rel='stylesheet' type='text/css'>
	
</head>
<body>
<!-- start: Header -->
	<header class="navbar">
		<div class="container">
			<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".sidebar-nav.nav-collapse">
			      <span class="icon-bar"></span>
			      <span class="icon-bar"></span>
			      <span class="icon-bar"></span>
			</button>
			<a id="main-menu-toggle" class="hidden-xs open"><i class="fa fa-bars"></i></a>		
				<a  href="<?php echo HOME; ?>"class="navbar-brand col-lg-2 col-sm-1 col-xs-12"><span>Mong.vn</span></a>
			<!-- start: Header Menu -->
			<div class="nav-no-collapse header-nav">
				<ul class="nav navbar-nav pull-right">
					
		
					<!-- start: Message Dropdown -->
                    <?php
						if(isset($_SESSION['user'])){
					inbox();
					}
					if($_SESSION['user']['level']==1 || $_SESSION['level']==2|| $_SESSION['level']==3){
						static_admin();
						 }?>
					<li class="dropdown hidden-xs">
						<a class="btn dropdown-toggle" data-toggle="dropdown" >
							<i class="fa fa-cloud-upload"></i> Upload 
						</a>
							<ul class="dropdown-menu">
							<?php if($_SESSION['user']['upload']==1){?>
							    <li><a href="<?php echo HOME;?>user/upload/video">Video</a></li>
                                 <li><a href="<?php echo HOME;?>user/upload/text">Blog</a></li>
                                 <li><a href="<?php echo HOME; ?>index.php?module=user&act=truyen&type=truyen">Truyện</a></li>
                                 <li><a href="<?php echo HOME; ?>user/upload/truyen">Chương Truyện</a></li>
                                  <?php }else{ ?> <li><a href="" class="user_post_register">Đăng Ký Upload</a></li> <?php } ?>
                     				
						</ul>
					</li>
					<!-- end: Message Dropdown -->
					
					<!-- start: User Dropdown -->
					<li class="dropdown">
						<a class="btn account dropdown-toggle" data-toggle="dropdown" href="<?php echo url() ?>#">
							
							<div class="user">
								<span class="hello">Xin Chào!</span>
								<span class="name"><i class="fa fa-user"></i>  <?php echo show_username($_SESSION['user']['username'],$_SESSION['user']['name']);?></span>
							</div>
						</a>
						<ul class="dropdown-menu">
							<li class="dropdown-menu-title"> Tài Khoản</li>
							 <li><a href="<?php echo USER_INFO;?>">Thông Tin</a></li>
                              <li><a href="<?php echo USER_CHANGEPASSWORD; ?>">Thay đổi mật khẩu</a></li>
                               <li><a href="<?php echo HOME;?>index.php?module=user&act=truyen&type=history">Theo Dõi Truyện</a></li>
						
                        		<?php if($_SESSION['user']['upload']==1){ ?>
                                 <li class="dropdown-menu-title">Quản Lý Nội Dung</li>    
                         		 <li><a href="<?php echo HOME ?>index.php?module=user&act=truyen&type=truyen">Truyện</a></li>
                                 <li><a href="<?php echo HOME ?>index.php?module=user&act=post&type=text">Blog</a></li>
                                 <li><a href="<?php echo HOME ?>index.php?module=user&act=post&type=video">Video</a></li>
                                   <?php }?>
                          <li><a href="<?php echo LOGOUT ?>"><span class="glyphicon glyphicon-log-out"></span> Thoát</a></li>
						</ul>
					</li>
					<!-- end: User Dropdown -->
				</ul>
			</div>
			<!-- end: Header Menu -->
			
		</div>	
	</header>
	<!-- end: Header -->
    	<div class="container">
		<div class="row">
				
			<!-- start: Main Menu -->
			<div id="sidebar-left" class="col-lg-2 col-sm-1">
				
				<input type="text" class="search hidden-sm" placeholder="..." />
				
				<div class="nav-collapse sidebar-nav collapse navbar-collapse bs-navbar-collapse">
					<ul class="nav nav-tabs nav-stacked main-menu">
						<li><a href="<?php echo url();?>#" style="background-color:#fff; color:#000"><i class="fa fa-bar-chart-o"></i><span class="hidden-sm"> Menu Chính</span></a></li>	
						<li>
							<a class="dropmenu" href="index.html#"><i class="fa fa-user"></i><span class="hidden-sm">Tài Khoản </span> <span class="label">2</span></a>
							<ul>
                             <li><a class="submenu" href="<?php echo  USER_INFO; ?>"> <i class='fa fa-minus'></i>Thông Tin Cá Nhân  </a></li>
    						 
     		                          <li><a class="submenu" href="<?php echo USER_CHANGEPASSWORD; ?>"><i class='fa fa-minus'></i> Đổi Mật Khẩu</a></li>
            				</ul>
							</li>
						<li><a  href="<?php echo HOME ?>user/upload"><i class="fa fa-cloud-upload"></i><span class="hidden-sm">Upload </span> </a>
			
						</li>
						
					
                    	<li><a href="<?php echo url() ?>#" class="dropmenu"><i class="fa fa-book"></i><span class="hidden-sm"> Quản Lý Blog</span>  <span class="label">3</span></a>
						<ul>
								<li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=post&type=text"><i class='fa fa-minus'></i> <span class="hidden-sm">Blog</span></a></li>
						
								<li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=post&type=video"><i class="fa fa-minus"></i><span class="hidden-sm">Video</span></a></li>
								
							<!--	<li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=post&type=image"> <i class="fa fa-minus "></i> <span class="hidden-sm">Hình Ảnh</span></a></li> -->
								 <li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=post&type=album"><i class='fa fa-minus'></i>Playlist</a></li>
							</ul>
						</li>
                    
                    
                    
                  
                    	<li><a href="<?php echo url() ?>#" class="dropmenu"><i class="fa fa-book"></i><span class="hidden-sm">Quản Lý Truyện</span>  <span class="label">3</span></a>
						<ul>
  
   <li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=truyen&type=history"><i class='fa fa-minus'></i> <span class="hidden-sm">Theo Dõi Truyện</span></a></li>
                                <li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=truyen&type=truyen"><i class='fa fa-minus'></i> <span class="hidden-sm">Truyện</span></a></li>
                                <li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=truyen&type=chuong"><i class="fa fa-minus"></i><span class="hidden-sm">Chương Truyện</span></a></li>
                                   <?php if($_SESSION['user']['level']==1||$_SESSION['user']['level']==2||$_SESSION['user']['level']==3){?>
                                   <li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=truyen&type=reporttruyen"><i class='fa fa-minus'></i> <span class="hidden-sm">Report Truyện</span></a></li>
                                   <?php }?>
                                 <?php if($_SESSION['user']['level']==1||$_SESSION['user']['level']==2){?>
                                   <li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=truyen&type=duyetupload"><i class='fa fa-minus'></i> <span class="hidden-sm">Duyệt Upload</span></a></li>
                                   <?php }?>
                                <?php if($_SESSION['user']['level']==1){?>
                                													<li><a class="submenu" href="<?php echo HOME;?>user/upload/truyen2"><i class='fa fa-minus'></i> <span class="hidden-sm">Cập Nhật Truyện</span></a></li>
						
																<li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=truyen&type=tag"> <i class="fa fa-minus "></i> <span class="hidden-sm">Tags</span></a></li>
								
								<li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=truyen&type=theloai"> <i class="fa fa-minus "></i> <span class="hidden-sm">Thể loại</span></a></li>
                                <li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=truyen&type=truyen_theloai"> <i class="fa fa-minus "></i> <span class="hidden-sm">Thể loại - Truyện</span></a></li>
								 <li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=truyen&type=tacgia"><i class='fa fa-minus'></i>Tác giả</a></li>
                                  <li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=truyen&type=truyen_tacgia"><i class='fa fa-minus'></i>Tác giả - Truyện</a></li>
							 <li><a class="submenu" href="<?php echo HOME;?>index.php?module=user&act=truyen&type=chuong_link"><i class='fa fa-minus'></i>Chương Link</a></li>
                           <?php }?>
                            </ul>
						</li>
                    
                    	
					 
						
						<li><a href="<?php echo LOGOUT ?>"><i class="fa fa-sign-out"></i><span class="hidden-sm">Thoát</span></a></li>
					</ul>
				</div>
			</div>
			<!-- end: Main Menu -->
						
			<!-- start: Content -->
			<div id="content" class="col-lg-10 col-sm-11">
            
           